package com.example.pipeline.service.impl;

import com.example.pipeline.base.ProcessContext;
import com.example.pipeline.base.ProcessModel;
import com.example.pipeline.dto.CreditScenesModel;
import com.example.pipeline.service.BusinessProcess;
import org.springframework.stereotype.Service;

import java.time.LocalDate;

/**
 * @author code威
 * @version 1.0
 * @description: 提取授信维度的借据信息
 * @date 2022/9/18 17:36
 */
@Service
public class BuildeLoanInfoAction implements BusinessProcess<CreditScenesModel> {
    @Override
    public void process(ProcessContext context) {
        CreditScenesModel creditScenesModel = (CreditScenesModel) context.getProcessModel();
        //根据主申请号得到所有的借据信息
        CreditScenesModel build = CreditScenesModel.builder().existsFlag(true).clmDate(LocalDate.now()).build();
        //遍历借据信息，得到所有的数据信息

        //返回信息

    }
}
